import request from '@/utils/request'

// 查询品牌列表
export function getBrandList(query) {
  return request({
    url: '/system/product/brand/list',
    method: 'get',
    params: query
  })
}

// 查询品牌列表
export function exportBrandList(query) {
  return request({
    url: '/system/product/brand/export',
    method: 'get',
    params: query
  })
}

// 添加品牌
export function addBrand(query) {
  return request({
    url: '/system/product/brand/add',
    method: 'post',
    data: query
  })
}

// 修改品牌
export function updateBrand(query) {
  return request({
    url: '/system/product/brand/update',
    method: 'put',
    data: query
  })
}

// 删除品牌
export function deleteBrand(brandId) {
  return request({
    url: '/system/product/brand/delete/' + brandId,
    method: 'delete'
  })
}

// 查询产品分类列表
export function getClassifyList(query) {
  return request({
    url: '/system/product/classify/list',
    method: 'get',
    params: query
  })
}

// 导出产品分类列表
export function exportClassifyList(query) {
  return request({
    url: '/system/product/classify/export',
    method: 'get',
    params: query
  })
}

// 添加产品分类
export function addClassify(query) {
  return request({
    url: '/system/product/classify/add',
    method: 'post',
    data: query
  })
}

// 修改产品分类
export function updateClassify(query) {
  return request({
    url: '/system/product/classify/update',
    method: 'put',
    data: query
  })
}

// 删除产品分类
export function deleteClassify(brandId) {
  return request({
    url: '/system/product/classify/delete/' + brandId,
    method: 'delete'
  })
}

// 查询产品系列列表
export function getSeriesList(query) {
  return request({
    url: '/system/product/series/list',
    method: 'get',
    params: query
  })
}

// 导出产品系列列表
export function exportSeriesList(query) {
  return request({
    url: '/system/product/series/export',
    method: 'get',
    params: query
  })
}

// 添加产品系列
export function addSeries(query) {
  return request({
    url: '/system/product/series/add',
    method: 'post',
    data: query
  })
}

// 修改产品系列
export function updateSeries(query) {
  return request({
    url: '/system/product/series/update',
    method: 'put',
    data: query
  })
}

// 删除产品系列
export function deleteSeries(seriesIds) {
  return request({
    url: '/system/product/series/delete/' + seriesIds,
    method: 'delete'
  })
}

// 发布产品
export function productRelease() {
  return request({
    url: '/system/product/productRelease',
    method: 'post'
  })
}

export function requestMethod1(query) {
  return request({
    url: '/system/product/test1',
    method: 'get',
    params: query
  })
}

export function requestMethod2(query) {
  return request({
    url: '/system/product/test2',
    method: 'post',
    params: query
  })
}

export function requestMethod3(query) {
  return request({
    url: '/system/product/test3',
    method: 'post',
    data: query
  })
}
